﻿; (function ($, window, document, undefined) {
    var myApp = window.myApp = aramza.app.create();

    myApp.views.renderTo = "#body";
    myApp.routes.mapRoute('Default', '{controller}/{action}/{id}', { controller: "Home", action: "Index", id: myApp.urlParameter.optional });
    myApp.dataService = aramza.define(function () {
        return {
            products: [
                { id: 1, name: "product 1" },
                { id: 2, name: "product 2" }
            ]
        };
    }, aramza.dataService);
    $(document).ready(function () {
       myApp.run();
    });
})(jQuery, window, document);
